package com.zlm.user.emp.dao;

import com.zlm.common.base.BaseDao;
import com.zlm.common.entity.EmpUserExperienceDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: duyufu
 * @Date: 2019/5/15 9:57
 */
@Repository
public interface EmpUserExperienceDao extends BaseDao<EmpUserExperienceDO> {

    /**
     * 新增用户工作经历
     * @param empUserExperienceDO
     */
    void insertUserExperience(EmpUserExperienceDO empUserExperienceDO);

    /**
     * 修改用户工作经历
     * @param empUserExperienceDO
     */
    void updateUserExperience(EmpUserExperienceDO empUserExperienceDO);

    /**
     * 删除用户工作经历
     * @param empId
     * @param eid
     */
    void deleteUserExperience(@Param("empId")Integer empId,@Param("eid")Integer eid);

    /**
     * 查询工作经历
     * @param empId
     * @return
     */
    List<EmpUserExperienceDO> queryUserExperience(@Param("empId")Integer empId);
}
